﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="OfficeSuppliesList.aspx.cs" Inherits="ServicesSheet_OfficeSuppliesList" %>

<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc3" %>
<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register src="../Control/SelUser.ascx" tagname="SelUser" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdatasource id="wdsEmpId" runat="server" selectalias="Usasdb" selectcommand="select &#13;&#10;Employees.EmployeeID,&#13;&#10;Employees.EmpName,&#13;&#10;Department.DepartmentName &#13;&#10;FROM Employees&#13;&#10; left join Department on Employees.DepartmentId=Department.DepartmentId&#13;&#10;WHERE (Employees.EmpStatus = 1)"
        cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdatasource id="wsFlowFlag" runat="server" selectalias="Usasdb" selectcommand="select Sys_FlowFlag.FlowFlag,Sys_FlowFlag.FlowFlagName from Sys_FlowFlag"
        cachedataset="True">
    </infolight:webdatasource>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width:40px">
                <asp:Label ID="Label5" runat="server" Text="部门:"></asp:Label>
            </td>
            <td>
                <uc1:DepartmentDList ID="DepartmentDList1" runat="server" />
            </td>
          <td style="width:40px">
                <asp:Label ID="Label22" runat="server" Text="日期:"></asp:Label>
            </td>
            <td>
                <uc3:DSelYearMonth ID="DSelYearMonth1" runat="server" />
            </td>
          <td style="width:40px">
                <asp:Label ID="Label1" runat="server" Text="员工:" ></asp:Label>
            </td>
            <td>
                <uc2:SelUser ID="SelUser" runat="server" />
             
            </td>
           
        </tr>
        <tr>
     <td style="width:80px">
                <asp:Label ID="Label3" runat="server" Text="流程标志:"></asp:Label>
            </td>
            <td>
                <infolight:webdropdownlist id="QueryFlowFlag" runat="server" appenddatabounditems="True"
                    autoinsertemptydata="True" datasourceid="wsFlowFlag" datatextfield="FlowFlagName"
                    datavaluefield="FlowFlag" driverobject="" filter="" filterobject="" width="120px">
                </infolight:webdropdownlist>
            </td>
            <td></td><td></td>
            <td colspan="2">
            <span class="roundbtn">
                    <asp:LinkButton ID="btnSearch" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="btnSearch_Click"
                  ></asp:LinkButton>
                </span>
             
            </td>
           
        </tr>
    </table>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" forecolor="#333333"
        width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" 
        queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        createinnernavigator="False" totalcaption="合计" onpageindexchanging="wgvMaster_PageIndexChanging"
        pagesize="20">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <navcontrols>
                    <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif"
                        ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif">
                    </InfoLight:ControlItem>
                    <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif"
                        ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif">
                    </InfoLight:ControlItem>
                    <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif"
                        ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif">
                    </InfoLight:ControlItem>
                </navcontrols>
        <columns>
                    <asp:BoundField DataField="SuppliesId" HeaderText="申请单编号" SortExpression="SuppliesId" Visible="False" />
                    <asp:BoundField DataField="DetailsId" HeaderText="明细序号" SortExpression="DetailsId" Visible="False" />
                    <asp:TemplateField HeaderText="日期" SortExpression="SuppliesYear">
                    <itemtemplate>
                       <asp:Label id="Labe31" runat="server" Text='<%# Eval("SuppliesYear")%>' __designer:wfdid="w1"></asp:Label> 
                   
</itemtemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="EmpName" HeaderText="员工" SortExpression="EmpName" />
                    <asp:BoundField DataField="DepartmentName" HeaderText="部门" SortExpression="DepartmentName" />                 
                    <asp:BoundField DataField="SId" HeaderText="办公品编号" SortExpression="SId" Visible="False" />
                    <asp:BoundField DataField="SName" HeaderText="办公品名称" SortExpression="SName" />
                    <asp:BoundField DataField="SType" HeaderText="型号" SortExpression="SType" />
                    <asp:BoundField DataField="Counts" HeaderText="数量" SortExpression="Counts" />
                    <asp:BoundField DataField="Amount" HeaderText="单价" SortExpression="Amount" Visible="False" />
                    <asp:BoundField DataField="SAmount" HeaderText="金额" SortExpression="SAmount" Visible="False" />
                    <asp:CheckBoxField DataField="IsConfirm" HeaderText="是否确认" />
                    <asp:TemplateField HeaderText="工作流状态" SortExpression="FlowFlag">
                     <itemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList1" runat="server" DataValueField="FlowFlag" DataTextField="FlowFlagName" DataSourceID="wsFlowFlag" FilterObject Filter DriverObject AutoInsertEmptyData="False" __designer:wfdid="w2" SelectedValue='<%# Bind("FlowFlag") %>' OnlyShowSelectText="True"></InfoLight:WebDropDownList> 
</itemtemplate>
                    </asp:TemplateField>
                     
                </columns>
        <rowstyle backcolor="#EFF3FB"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
        <totalcolumns>
                    <InfoLight:GridViewTotalItem FieldName="Counts" />
                </totalcolumns>
    </infolight:webgridview>
</asp:Content>
